<?php
include dirname(__FILE__)."/s_user-verify.php";
include dirname(__FILE__)."/function.php"; 
if(isset($_POST['submited'])&&$_POST['submited']==1) {
	
	$student_id=dowith_sql(addslashes($_POST['student_id']));
	$department=dowith_sql(addslashes($_POST['department']));
	$grade=dowith_sql(addslashes($_POST['grade']));
	$user_real_name=dowith_sql(addslashes($_POST['user_real_name']));
	$sex=dowith_sql(addslashes($_POST['sex']));
	$phone=dowith_sql(addslashes($_POST['phone']));
	$id=dowith_sql(addslashes($_SESSION['s_user_id']));
	$params=array(
			'student_id'=>'"'.$student_id.'"',
			'sex'=>'"'.$sex.'"',
			'grade'=>'"'.$grade.'"',
			'department'=>'"'.$department.'"',
			'user_real_name'=>'"'.$user_real_name.'"',
			'phone'=>'"'.$phone.'"'
	);
	if (updateSUser($params, $id)) {
		alertInfo("修改成功", getHost()."/front-show/home.php");
		
	}else {
		alertInfo("修改失败", getHost()."/front-show/home.php");
		
	}
	
}
?>